package com.allen.imsystem.friend.mappers;

import com.allen.imsystem.friend.model.vo.FriendInfoForInvite;
import com.allen.imsystem.friend.model.pojo.Friend;
import com.allen.imsystem.user.model.vo.UserInfoView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
@Mapper
public interface FriendMapper extends BaseMapper<Friend> {

    List<String> selectFriendId(String uid);

    Set<String> selectTwoWayFriendId(String uid);

    Set<UserInfoView> selectFriendList(@Param("uid") String uid);

    List<UserInfoView> selectFriendListOrderByGroupId(@Param("uid") String uid);

    List<FriendInfoForInvite> selectFriendListForInvite(String uid);
}
